<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
       <select v-modal="val">
        <option value="1">选择1</option>
        <option value="2">选择2</option>
        <option value="3">选择3</option>
        <option value="4">选择4</option>
       </select>
    </div>
</body>
<script src="./vue.js"></script>
<script>
    let{createApp,ref}=Vue;
    createApp({
        setup(){
             let val=ref('');
            return{
              val
            }
        }
    }).mount("#app")
</script>
</html>